package com.lch.thread.vip.wait_notify;

/**
 * @author: liuchenhui
 * @create: 2019-05-13 22:11
 **/
public class ThreadB extends Thread {

    private Object object;

    public ThreadB(Object object) {
        this.object = object;
    }

    @Override
    public void run() {
        synchronized (object) {
            System.out.println("threadB start");
            object.notify();
            System.out.println("threadB end");
        }
    }
}
